package com.my.security.service.impl;

import com.my.security.dao.PermissionMapper;
import com.my.security.model.Permission;
import com.my.security.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lbb
 * @fileName PermissionServiceImpl
 * @description
 * @date 2020/5/12 15:25
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> getList() {
        return permissionMapper.getList();
    }

    @Override
    public List<Permission> getUserPermission(String username) {
        return permissionMapper.getUserPermission(username);
    }
}
